import Vue from 'vue'
import VueRouter from 'vue-router'

//导入页面
import HomeIndex from '@/views/home/homeIndex.vue'
import ProblemFeedback from '@/views/order/problem/problemFeedback.vue'
import PersonalHome from "@/views/personal/personalHome.vue";
import GuideIndex from "@/views/personal/guideIndex.vue";
import SettingIndex from "@/views/personal/settingIndex.vue";
import AboutUsIndex from "@/views/personal/aboutUsIndex.vue";
import AgreeIndex from "@/views/personal/agreeIndex.vue";
import LicenceIndex from "@/views/personal/LicenceIndex.vue";
import UpdateIndex from "@/views/personal/updateIndex.vue";
import PhoneIndex from "@/views/personal/phoneIndex.vue";
import UsuallyIndex from "@/views/personal/usuallyIndex.vue";
import PurseHome from '@/views/purse/purse_home/PurseHome.vue'
import AddCard from '@/views/purse/add_card/AddCard.vue'
import OrderList from '@/views/order/orderList.vue'
import HavePaid from "@/views/order/orderDetail/havePaid.vue";
import NoPaid from "@/views/order/orderDetail/noPaid.vue";
import InformationList from "@/views/information/informationList.vue";
import FeedbackDetail from "@/views/information/feedback/feedbackDetail.vue"
import Wait from '@/views/wait/WaitOrder.vue'
import ReceiveComponent from '@/views/wait/receive/ReceiveComponent.vue'
import PasswordFree from '@/views/purse/password_free/PasswordFree.vue'
import OpenedPasswordFree from '@/views/purse/opened_password_free/OpenedPasswordFree.vue'
import EndPoint from "@/views/point/endPoint/endPoint.vue";
import StartPoint from "@/views/point/startPoint/startPoint.vue";
import MakeOrder from "@/views/order/makeOrder/makeOrder.vue";
import HomeAndCompany from "@/views/point/homeAndCompany/homeAndCompany.vue";
import SecurityCenter from '@/views/home/security_center/SecurityCenter.vue';
import jijiaIndex from "@/views/personal/jijiaIndex.vue";
import yishiIndex from "@/views/personal/yishiIndex.vue";
import quxiaoIndex from "@/views/personal/quxiaoIndex.vue";
import quxiao2Index from "@/views/personal/quxiao2Index.vue";
import tousuIndex from "@/views/personal/tousuIndex.vue";
import lianxiIndex from "@/views/personal/lianxiIndex.vue";
import fabuIndex from "@/views/personal/fabuIndex.vue";
import anquanIndex from "@/views/personal/anquanIndex.vue";
import zhuceIndex from "@/views/personal/zhuceIndex.vue";
import fapiaoIndex from "@/views/personal/fapiaoIndex.vue";
import OverPayment from "@/views/order/orderDetail/overPayment.vue"
import DestIndex from "@/views/wait/dest/DestIndex.vue";
import appraiseIndex from "@/views/wait/dest/appraiseIndex.vue";
import ReachComponent from "@/views/wait/reach/ReachComponent.vue"
import AddSos from "@/views/home/add_sos/AddSos.vue";
import AddAttestation from "@/views/home/add_attestation/AddAttestation.vue";
import RouteCartypeTime from "@/views/point/routeCart/routeCartypeTime.vue";
import HelpCartOne from "@/views/point/helpCartOne/helpCartOne.vue";
import ChatMessage from "@/views/wait/chat/ChatMessage.vue"
import InMotion from "@/views/wait/inMotion/InMotion.vue";
import SetPasswordIndex from "@/views/personal/SetPasswordIndex.vue";
import EnterCodeIndex from "@/views/personal/EnterCodeIndex.vue";
import loginList from "@/views/personal/loginList.vue";
import MapSite from "@/views/point/mapSite/mapSite.vue";
import CitySelect from "@/views/point/citySelect/citySelect.vue";
import HelpCartTwo from "@/views/point/helpCartTwo/helpCartTwo.vue";
import AiHome from "@/views/ai/aiHome.vue";
// 使用VueRouter
Vue.use(VueRouter)
// 创建路由实例
const router = new VueRouter({
    mode: 'history', // 使用HTML5 History模式
    routes: [
        {
            path: '/aiHome',
            component: AiHome,
        },
        {
            path: '/',
            component: HomeIndex,
        },
        {
            path: '/security_center',
            component: SecurityCenter,
        },
        {
            path: '/add_sos',
            component: AddSos,
        },
        {
            path: '/add_attestation',
            component: AddAttestation,
        },
        {
            path: '/startPoint',
            component: StartPoint,
        },
        {
            path: '/endPoint',
            component: EndPoint,
        },
        {
            path: '/makeOrder',
            component: MakeOrder,
        },
        {
            path: '/mapSite',
            component: MapSite,
        },
        {
            path: '/citySelect',
            component: CitySelect,
        },
        {
            path: '/helpCartOne',
            component: HelpCartOne,
        },
        {
            path: '/helpCartTwo',
            component: HelpCartTwo,
        },
        {
            path: '/reach',
            component: ReachComponent,
        },
        {
            path: '/homeAndCompany',
            component: HomeAndCompany,
        },
        {
            path: '/routeCart',
            component: RouteCartypeTime,
        },
        {
            path: '/chat',
            component: ChatMessage,
        },
        {
            path: '/inMotion',
            component: InMotion,
        },
        {
            path: '/wait',
            component: Wait,
        },
        {
            path: '/receive',
            component: ReceiveComponent,
        },
        {
            path: '/orderList',
            component: OrderList,
        },
        {
            path: '/problemFeedback',
            component: ProblemFeedback,
        },
        {
            path: '/personalHome',
            component: PersonalHome,
        },
        {
            path: '/guide',
            component: GuideIndex
        },
        {
            path: '/setting',
            component: SettingIndex
        },
        {
            path: '/aboutUs',
            component: AboutUsIndex
        },
        {
            path: '/agree',
            component: AgreeIndex
        },
        {
            path: '/licence',
            component: LicenceIndex
        },
        {
            path: '/password',
            component: UpdateIndex
        },
        {
            path: '/phone',
            component: PhoneIndex
        },
        {
            path: '/usually',
            component: UsuallyIndex
        },
        {
            path: '/purse_home',
            component: PurseHome,
        },
        {
            path: '/add_card',
            component: AddCard,
        },
        {
            path: '/password_free',
            component: PasswordFree,
        },
        {
            path: '/opened_password_free',
            component: OpenedPasswordFree,
        },
        {
            path: '/orderList',
            component: OrderList
        },
        {
            path: '/havePaid',
            component: HavePaid
        },
        {
            path: '/noPaid',
            component: NoPaid
        },
        {
            path: '/informationList',
            component: InformationList
        },
        {
            path: '/feedbackDetail',
            component: FeedbackDetail
        },
        {
            path: '/jijia',
            component: jijiaIndex
        },
        {
            path: '/yishi',
            component: yishiIndex
        },
        {
            path: '/quxiao',
            component: quxiaoIndex
        },
        {
            path: '/quxiao2',
            component: quxiao2Index
        },
        {
            path: '/tousu',
            component: tousuIndex
        },
        {
            path: '/lianxi',
            component: lianxiIndex
        },
        {
            path: '/fabu',
            component: fabuIndex
        },
        {
            path: '/anquan',
            component: anquanIndex
        },
        {
            path: '/fapiao',
            component: fapiaoIndex
        },
        // 行程中-------到达目的地（别删别删）
        {
            path: '/dest',
            component: DestIndex
        },
        {
            path: '/appraise',
            component: appraiseIndex
        },
        {
            path: '/overPayment',
            component: OverPayment
        },
        {
            path: '/zhuce',
            component: zhuceIndex
        },
        {
            path: '/EnterCode',
            component: EnterCodeIndex
        },
        {
            path: '/SetPassword',
            component: SetPasswordIndex
        },
        {
            path:'/login',
            component:loginList
        },

    ]
})

export default router